
<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UFT-8">
<title>Insert title here</title>
<script>
	    
		function loginCheck(){
			var name = document.getElementById("user_username").value;
			var pass = document.getElementById("user_password").value;
			var type = document.getElementById("user_adminFlag").value;
			
			if (name ==null || name==""){
				alert("请输入帐号！");
				return false;
			}
			if (pass ==null || pass==""){
				alert("请输入密码！");
				return false;
			}
			if (type ==null || type==""){
				alert("请选择管理员类型！");
				return false;
			}
			return true;
		}
    </script>
</head>
<body>
<center>

<s:form action="loginAction" name="Login" method="post">
 <table>
<tr>
<th  colspan="2">
教务管理系统--登录
</th>
</tr>

<tr>
<td></td>
<td></td>
</tr>

<tr>
<td>
<label>帐&nbsp;&nbsp;&nbsp;&nbsp;号：</label>
</td>
<td>
<input name="UserId" id="user_username" type="text" maxlength="20" tabindex="1" class="text_nor" style="width:120px;" />
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>

<tr>
</tr>

<tr>
<td>
<label for="">密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
</td>
<td>
<input name="Pwd" id="user_password" type="password" maxlength="20" tabindex="2" class="text_nor" style="width:120px;" />
</td>
</tr>

<tr>
<td></td>
<td></td>
</tr>

<tr>
<td>
 <label>登陆类型：</label>
 </td>
 <td>


<select id="user_adminFlag" name="Type">
<option value="">==请选择==</option>
<option value="1">超级管理员</option>
<option value="2">普通用户</option>
</select>
</td>
</tr>

<tr>
<td></td>
<td></td>
</tr>

<tr>
<td>
 <input type="submit"  value="登录" id="btnLogin" class="button" onClick="return loginCheck();"/>
</td>
<td>
  <input type="reset"  value="重置" id="btnReset" class="button" />
 </td>
</tr>

</table>
</s:form>
</center>

</body>
</html>
